﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>    
    /// /// 进货表实体类    
    /// /// </summary>

    public class PurchaseBill
    {
        public string PurchaseBillID { get; set; }//订单编号
        public string SupplierID { get; set; }    //供应商编号
        public DateTime PurchaseDate { get; set; }//订单日期
        public DateTime StockDate { get; set; }   //入库日期
        public string Clerk { get; set; }         //业务员
        public string Examiner { get; set; }      //审核员
        public string Custodian { get; set; }     //检验（保管）员
        public int OnProcess { get; set; }        //执行状态。0：执行；1：撤销；2：完成
        public string Memo { get; set; }          //备注
        public List<PurchaseDetail> PurchaseDetailList { get; set; }//关联的明细

        public PurchaseBill() { }
        public PurchaseBill(string purchaseBillID, string supplierID, DateTime purchaseDate, DateTime stockDate, string clerk, string examiner,
            string custodian, int onProcess, string memo)
        {
            this.PurchaseBillID = purchaseBillID;
            this.SupplierID = supplierID;
            this.PurchaseDate = purchaseDate;
            this.StockDate = stockDate;
            this.Clerk = clerk;
            this.Examiner = examiner;
            this.Custodian = custodian;
            this.OnProcess = onProcess;
            this.Memo = memo;
        }
        public PurchaseBill(List<PurchaseDetail> detailList)
        {
            this.PurchaseDetailList = detailList;
        }
    }
}
